package com.worldcup.service.impl;

import com.worldcup.dao.UserMapper;
import com.worldcup.model.User;
import com.worldcup.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author duwan.zq
 * @date 2018/06/03
 */
@Service
public class UserServiceImpl implements UserService{

    @Autowired
    private UserMapper userMapper;

    @Override
    public User getUser(String openid) {
        return userMapper.selectByOpenid(openid);
    }
}
